package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.beans.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统参数表
 * </p>
 *
 * @author LX
 * @since 2018-09-08
 */
@TableName("erp_system_parameters")
public class ErpSystemParameters extends Model<ErpSystemParameters> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 目标名称
     */
    private String name;

    private transient List<ErpSystemParametersChild> parametersChildList;

    public List<ErpSystemParametersChild> getParametersChildList() {
        return parametersChildList;
    }

    public void setParametersChildList(List<ErpSystemParametersChild> parametersChildList) {
        this.parametersChildList = parametersChildList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpSystemParameters{" +
        ", id=" + id +
        ", name=" + name +
        "}";
    }
}
